<template>
  <div>
    <el-header class="header">
      <div class="header-left">
        <!-- logo -->
        <img src="../assets/logo.png" alt="Logo" class="logo">
      </div>
      <div class="header-right">
        <!-- 导航栏内容 -->
        <router-link to="/Person" class="router-link">个人信息</router-link>
        <span class="dot"></span>
        <router-link to="/ArticleForm" class="router-link">写备忘录</router-link>
        <span class="dot"></span>
        <router-link to="/Show" class="router-link">备忘录</router-link>
        <span class="dot"></span>
        <router-link to="/ImageUpload" class="router-link">图片上传</router-link>
        <span class="dot"></span>
        <router-link to="/Navigation" class="router-link">导航页</router-link>
        <span class="dot"></span>
        <router-link to="/WindowBlind" class="router-link">图片墙</router-link>
        <span class="dot"></span>
        <router-link to="/Food" class="router-link">食物选择</router-link>
      </div>
    </el-header>
    <el-carousel :interval="4000">
      <el-carousel-item>
        <img src="../assets/Home1.jpeg" alt="Banner 1" style="width: 1000px; height: 300px;">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../assets/Home2.jpeg" alt="Banner 2" style="width: 1000px; height: 300px;">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../assets/Home3.jpeg" alt="Banner 3" style="width: 1000px; height: 300px;">
      </el-carousel-item>
    </el-carousel>
    <el-container>
      <el-main>
        <h1>Welcome to my website!</h1>
        <h2>This is a new attempt.</h2>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
}
</script>

<style scoped>
h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

p {
  font-size: 16px;
  color: #666;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #ffffff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
}

.header-right {
  display: flex;
  align-items: center;
}

.router-link {
  padding: 8px;
  margin-right: 10px;
  text-decoration: none;
  color: #333;
}

.dot {
  width: 4px;
  height: 4px;
  background-color: #ccc;
  border-radius: 50%;
  margin-right: 10px;
}

.router-link:focus,
.router-link:active {
  outline: none;
}
</style>